/*
 * @Description: 
 * @FilePath: \rs_wms_pc\src\api\invoice\receive.js
 */
import request from '@/utils/request'

// 查询采购收货单列表
export function selectReceiveBillForPrint(query) {
  return request({
    url: '/bill/receive/selectReceiveBillForPrint',
    method: 'get',
    params: query
  })
}

// 查询收货单列表
export function listReceive(query) {
  return request({
    url: '/bill/receive/list',
    method: 'get',
    params: query
  })
}

// 查询收货单详细
export function getReceive(id) {
  return request({
    url: '/bill/receive/' + id,
    method: 'get'
  })
}

// 新增收货单
export function addReceive(data) {
  return request({
    url: '/bill/receive',
    method: 'post',
    data: data
  })
}

// 修改收货单
export function updateReceive(data) {
  return request({
    url: '/bill/receive',
    method: 'put',
    data: data
  })
}

// 确定收货单
export function confirmReceive(data) {
  return request({
    url: '/bill/receive/confirm',
    method: 'post',
    data: data
  })
}


// 删除收货单
export function delReceive(id) {
  return request({
    url: '/bill/receive/' + id,
    method: 'delete'
  })
}


// 查询收货单明细列表
export function listReceiveDetail(query) {
  return request({
    url: '/bill/receiveDetail/list',
    method: 'get',
    params: query
  })
}

// 查询收货单明细详细
export function getReceiveDetail(id) {
  return request({
    url: '/bill/receiveDetail/' + id,
    method: 'get'
  })
}

// 新增收货单明细
export function addReceiveDetail(data) {
  return request({
    url: '/bill/receiveDetail',
    method: 'post',
    data: data
  })
}

// 修改收货单明细
export function updateReceiveDetail(data) {
  return request({
    url: '/bill/receiveDetail',
    method: 'put',
    data: data
  })
}

// 删除收货单明细
export function delReceiveDetail(id) {
  return request({
    url: '/bill/receiveDetail/' + id,
    method: 'delete'
  })
}


// 查询收货清单列表
export function listRefundCheck(query) {
  return request({
    url: '/bill/refundCheck/list',
    method: 'get',
    params: query
  })
}

// 查询收货清单详细
export function getRefundCheck(id) {
  return request({
    url: '/bill/refundCheck/' + id,
    method: 'get'
  })
}

// 新增收货清单
export function addRefundCheck(data) {
  return request({
    url: '/bill/refundCheck',
    method: 'post',
    data: data
  })
}

// 修改收货清单
export function updateRefundCheck(data) {
  return request({
    url: '/bill/refundCheck',
    method: 'put',
    data: data
  })
}

// 删除收货清单
export function delRefundCheck(id) {
  return request({
    url: '/bill/refundCheck/' + id,
    method: 'delete'
  })
}
